package com.fosdata.dpm.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 箱变资料说明
 * </p>
 *
 * @author gyk
 * @since 2025-10-25
 */
@TableName("xb_dev_recoder")
public class XbDevRecoder extends Model<XbDevRecoder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备类型
     */
    private String devType;

    /**
     * 设备名称;关联箱变设备表
     */
    private String devName;

    /**
     * 设备编号;关联箱变设备表
     */
    private String devCode;

    /**
     * 备注
     */
    private String remark;

    /**
     * 记录类型;1:箱变图纸，2：箱变说明书，3：箱变故障方案，4：箱变实验报告
5：定制表；6远动点表
     */
    private String recodeType;

    /**
     * 文件地址
     */
    private String fileAddr;

    /**
     * 文件名称
     */
    private String fileName;

    /**
     * 上传人员
     */
    private String upUser;

    /**
     * 时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 删除;1删除 0正常
     */
    private String delFlag;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDevType() {
        return devType;
    }

    public void setDevType(String devType) {
        this.devType = devType;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public String getDevCode() {
        return devCode;
    }

    public void setDevCode(String devCode) {
        this.devCode = devCode;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRecodeType() {
        return recodeType;
    }

    public void setRecodeType(String recodeType) {
        this.recodeType = recodeType;
    }

    public String getFileAddr() {
        return fileAddr;
    }

    public void setFileAddr(String fileAddr) {
        this.fileAddr = fileAddr;
    }

    public String getUpUser() {
        return upUser;
    }

    public void setUpUser(String upUser) {
        this.upUser = upUser;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public String toString() {
        return "XbDevRecoder{" +
                "id=" + id +
                ", devType='" + devType + '\'' +
                ", devName='" + devName + '\'' +
                ", devCode='" + devCode + '\'' +
                ", remark='" + remark + '\'' +
                ", recodeType='" + recodeType + '\'' +
                ", fileAddr='" + fileAddr + '\'' +
                ", upUser='" + upUser + '\'' +
                ", createTime=" + createTime +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
